<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>FancyGo添加导航网址</title>
    <link rel="stylesheet" href="layui/css/layui.css" media="all">
    <style type="text/css">
        .layui-input-block{
            width:250px;
            height:50px;
        }
    </style>
  
</head>

<body>
<form class="layui-form" action="/add_post" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label">网站分类</label>
        <div class="layui-input-block">
            <input type="text" name="kind" required  lay-verify="required" placeholder="请输入网站分类" autocomplete="off" class="layui-input">
        </div>

        <label class="layui-form-label">url</label>
        <div class="layui-input-block">
            <input type="text" name="url" required  lay-verify="required" placeholder="请输入网站url" autocomplete="off" class="layui-input">
        </div>

        <label class="layui-form-label">网站名字</label>
        <div class="layui-input-block">
            <input type="text" name="name" required  lay-verify="required" placeholder="请输入股票名字"  autocomplete="off" class="layui-input" accept-charset="UTF-8">
        </div>

        <label class="layui-form-label">网站描述</label>
        <div class="layui-input-block">
            <input type="text" name="desc" required  lay-verify="required" placeholder="请输入网站描述"  autocomplete="off" class="layui-input" accept-charset="UTF-8">
        </div>

        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="submint_stock">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>


<script src="layui/js/layui.js">
</script>

<script>
layui.config({ debug: true });

layui.use('form', function(){
  var form = layui.form;

  //监听提交
  form.on('submit(submit_stock)', function(data){
    layer.msg(JSON.stringify(data.field));
    return false;
  });
});
</script>

</body>
</html>

